ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / DXUtil Class / SizeOf Method / SizeOf<T>(T[]) Method
A struct.
The array of struct to evaluate.

In This Topic
    SizeOf<T>(T[]) Method
    In This Topic
    Return the sizeof an array of struct. Equivalent to sizeof operator but works on generics too.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SizeOf(Of T As {New, Struct})( _
       ByVal array() As T _
    ) As System.Integer
    public static System.int SizeOf<T>( 
       T[] array
    )
    where T: new(), struct

    Parameters

    array
    The array of struct to evaluate.

    Type Parameters

    T
    A struct.

    Return Value

    Size in bytes of this array of struct.
    See Also